package com.Unit_training;

public class Book extends Document {
    private int iPageCount;

    public Book(String Name,int iPageCount){
        super(Name);
        this.iPageCount = iPageCount;
    }

    public void printInfo() {
        super.printInfo();
        System.out.println("Page of Document: "+iPageCount);
    }
}
